package com.your.netty.sample.core;

import org.springframework.util.Assert;

public class RequestData {
	private String sys_id;
	private String sign;
	private String salt;
	private String serviceName;
	private String http_body;
	/** IP地址，不同网络环境下下可能会有多位。取[0]即可 */
	private String[] remoteAddr;

	public String getSys_id() {
		return sys_id;
	}

	public void setSys_id(String sys_id) {
		Assert.hasLength(sys_id, "[sys_id] must not be empty");
		this.sys_id = sys_id;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		Assert.hasLength(sign, "[sign] must not be empty");
		this.sign = sign;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		Assert.hasLength(salt, "[salt] must not be empty");
		this.salt = salt;
	}

	/**
	 * @return the http_body
	 */
	public String getHttp_body() {
		return http_body;
	}

	/**
	 * @param http_body
	 *            the http_body to set
	 */
	public void setHttp_body(String http_body) {
		Assert.hasLength(http_body, "[http_body] must not be empty");
		this.http_body = http_body;
	}

	/**
	 * @param remoteAddr
	 *            the remoteAddr to set
	 */
	public void setRemoteAddr(String[] remoteAddr) {
		this.remoteAddr = remoteAddr;
	}

	/**
	 * @return the remoteAddr
	 */
	public String[] getRemoteAddr() {
		return remoteAddr;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		Assert.hasLength(serviceName, "[serviceName] must not be empty");
		this.serviceName = serviceName;
	}
}
